//
//  UIViewController+Additions.h
//  Learn
//
//  Created by zyl_macbookpro on 2024/4/1.
//  Copyright © 2024 迟建国. All rights reserved.
//



NS_ASSUME_NONNULL_BEGIN

@interface UIViewController (Additions)

- (void)renderNavBarWithBackgroundImage:(UIImage * __nullable)img
                       backgroundColor:(UIColor * __nullable)bgColor
                           shadowColor:(UIColor * __nullable)sColor
                      textAttributeDic:(NSDictionary * __nullable)textAttributeDic
             enableScrollEdgeAppearance:(BOOL)enable;

- (id)initWithClassName:(NSString *)aClassName;

- (NSObject *)paraObject;//视图控制器传参

- (void)setParaObject:(NSObject *)paraObject;

- (void)setBackButtonIsHidden:(BOOL)hidden;

- (void)setWhiteBackButton;

/**
 跳到制定名称的viewcontroller
 */
-(void)popToViewControllerWithClassName:(NSString *)viewController animated:(BOOL)animated;
-(void)pushToViewControllerWithClassName:(NSString *)viewController animated:(BOOL)animated;

@end

NS_ASSUME_NONNULL_END
